package com.example.mapstructexample.vo;

public class StudentVO {
    /**
     * 姓名
     */
    private String name;
    /**
     * 年龄
     */
    private Integer age;

    /**
     * 车名
     */
    private String carName;

    /**
     * 车颜色
     */
    private String carColor;

    /**
     * 教师
     */
    private TeacherVo teacherVo;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getCarName() {
        return carName;
    }

    public String getCarColor() {
        return carColor;
    }

    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public TeacherVo getTeacherVo() {
        return teacherVo;
    }

    public void setTeacherVo(TeacherVo teacherVo) {
        this.teacherVo = teacherVo;
    }

    @Override
    public String toString() {
        return "StudentVO{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", carName='" + carName + '\'' +
                ", carColor='" + carColor + '\'' +
                ", teacherVo=" + teacherVo +
                '}';
    }
}
